package com.lee.controller;

import com.lee.annotation.NotNull;
import com.lee.entity.ResponseWrapper;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DefinedValidator {

    @GetMapping("testValidator")
    ResponseEntity testValidator(@RequestParam @NotNull String p1, @RequestParam @NotNull String p2) {
        return new ResponseEntity(ResponseWrapper.ok().build(), HttpStatus.OK);
    }




}
